package com.dime.basic.api;

import com.dime.basic.api.domain.DimeBaseoccupationcriterion;
import com.dime.basic.api.factory.RemoteOccupationcriterionFallbackFactory;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "remoteOccupationcriterionService", value = ServiceNameConstants.DM_BASIC, fallbackFactory = RemoteOccupationcriterionFallbackFactory.class)
public interface RemoteOccupationcriterionService {

    @PostMapping("/baseoccupationcriterion/info/baseoccupationcriterionList")
    public R<List<DimeBaseoccupationcriterion>> getDimeBaseoccupationcriterionList(@RequestBody DimeBaseoccupationcriterion dimeBaseoccupationcriterion,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    @PostMapping("/baseoccupationcriterion/info/baseoccupationcriterionListByHarms")
    public R<List<DimeBaseoccupationcriterion>> getDimeBaseoccupationcriterionListByHarms(@RequestBody List<String> harmIds);
}
